Use a hash for -C metadata instead of a string
authorAlex Crichton <alex@alexcrichton.com>
Tue, 22 Jul 2014 15:33:47 +0000 (08:33 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 22 Jul 2014 17:06:36 +0000 (10:06 -0700)
commit5dc5381fcc8a6c3bb5bbb869cdb6b704fffb79e6
treecc6105eb2d0667f9f544f7cc0a9ff4e19c7efce5
parentc3f9f9e70079ba3491c881484ae9c9d851c70052
Use a hash for -C metadata instead of a string

This ends up serving the same purpose, but a critical change is that it
canonicalizes the relevant git url (if one is used) to ensure that the same
package from two slightly different locations is always built the same way.

Sadly I'm not quite sure how to add a test for this as it involves using remote
git urls which are unusable during tests.
src/cargo/core/package_id.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
tests/test_cargo_compile.rs
tests/test_cargo_compile_git_deps.rs